package com.xc.hotelmgr.order.modules.order.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.hotelmgr.order.common.utils.PageUtils;
import com.xc.hotelmgr.order.common.utils.Query;

import com.xc.hotelmgr.order.modules.order.dao.GuestDao;
import com.xc.hotelmgr.order.modules.order.entity.GuestEntity;
import com.xc.hotelmgr.order.modules.order.service.GuestService;


@Service("guestService")
public class GuestServiceImpl extends ServiceImpl<GuestDao, GuestEntity> implements GuestService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GuestEntity> page = this.page(
                new Query<GuestEntity>().getPage(params),
                new QueryWrapper<GuestEntity>()
        );

        return new PageUtils(page);
    }

}